import Http from '../http';


export const getNoticeList = function(queryModel:any) {
    return Http.get('/Notice/Index',queryModel) 
}
export const getRead = function(id:number) {
    return Http.get('/Notice/Read',{id:id}) 
}
export const getReply = function(uid:number) {
    return Http.get('/Notice/RePly',{uid:uid}) 
}
export const getAdd = function() {
    return Http.get('/Notice/AddOrEdit') 
}
export const postAdd = function(from:any) {
    return Http.post('/Notice/Create',from) 
}

export const delOne = function(id:number) {
    return Http.delete('/Notice/Delete',{id:id}) 
}
